
public class SalaryWorker extends Employee{

	private int Salary;
	
	public SalaryWorker(String firstName, String lastName, String age,
			String address, String city, String state, String zip) {
		super(firstName, lastName, age, address, city, state, zip);
		
	}

	public int getSalary() {
		return Salary;
	}

	public void setSalary(int salary) {
		Salary = salary;
	}

	@Override
	public String toString() {

		StringBuilder sb = new StringBuilder();
		
		sb.append(getFirstName());
		sb.append(" ");
		sb.append(getLastName());
		sb.append(" ");
		sb.append(getAge());
		sb.append(" ");
		sb.append(getAddress());
		sb.append(" ");
		sb.append(getCity());
		sb.append(" ");
		sb.append(getState());
		sb.append(" ");
		sb.append(getZip());
		sb.append(" ");
		sb.append(getSalary());
		sb.append(" ");
		sb.append(" ");
		
		return sb.toString();
		
	}
	

}
